package com.lagou.client;

import java.util.Scanner;

public class ClientScanner {

    private static Scanner scanner = new Scanner(System.in);

    /**
     * 自定义成员方法获取扫描器
     * @return
     */
    public static Scanner getScanner() {
        return scanner;
    }

    /**
     * 自定义成员方法关闭扫描器
     * @param scanner
     */
    public static void closeScanner() {
        scanner.close();
    }
}
